FSMBuilder
fun <T : State> FSMBuilder( statesManager: StatesManager<T> = DefaultStatesManager(InMemoryDefaultStatesManagerRepo()), fsmBuilder: (statesManager: StatesManager<T>, states: List<CheckableHandlerHolder<T, T>>) -> StatesMachine<T> = { statesManager, states ->
StatesMachine(
statesManager,
states
)
}, defaultStateHandler: StatesHandler<T, T>? = StatesHandler { null })
Content copied to clipboard